package com.wsfk.ssm.service;

import java.io.File;
import java.util.List;

import com.wsfk.ssm.entity.HandBook;
import com.wsfk.ssm.entity.Picture;
import com.wsfk.ssm.entity.User;
import com.wsfk.ssm.entity.Zip;
import com.wsfk.ssm.tools.Pagination;

public interface HandBookSvc {

	public List<HandBook> queryAllBookByUser(String userid);

	//public int updateHandBook(HandBook handBook);

	//public int addPicture(Picture picture);//向数据库中添加一个数据
	
	public boolean savePicFile( User user,HandBook handBook,File upload, String model);
	//public Picture savePicFile(File upload , String uploadFileName, HandBook handBook, String userName);//将图标文件上传到服务器上
	
	public Pagination queryPageBookByUser(String userId, Pagination page); //分页
	
	public HandBook queryById(String id);
	
	public int updateHandBookById(HandBook handBook);
	
	public HandBook queryBookByIdAndPublishStatus(String id);
	
	//public int updateVersionById(HandBook handBook);
	
	public int addZip(Zip zip);
	
	public Zip queryZipByFileDir(String fileDir);
	public boolean updateVersionById(User user, HandBook handBook);
}
